package com.byls.dao;

import com.byls.pojo.Lawyer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LawyerMapper {
    @Select("select *from lawyer")
    List<Lawyer> getAllLawyer();
    @Select("select *from lawyer where name like '%${name}%'")
    List<Lawyer> getLawyerByName(String name);
}
